export namespace checkStar {
  export interface Data {
    isStar: boolean
  }

  export interface RootObject {
    statusCode: number
    message: string
    data: Data
  }
}

export namespace userStar {
  export interface User {
    id: number
    name: string
    mail: string
    phone: string
    wechat: string
    qq: string
    role: string
    createTime: Date
    updateTime: Date
  }

  export interface Article {
    id: number
    name: string
    tagId: number
    userId: number
    content: string
    imgList: string[]
    createTime: Date
    updateTime: Date
    user: User
  }

  export interface Star {
    id: number
    userId: number
    articleId: number
    createTime: Date
    updateTime: Date
    article: Article
  }

  export interface Data {
    stars: Star[]
    totalCount: number
  }

  export interface RootObject {
    statusCode: number
    message: string
    data: Data
  }
}
